package Animal;

import java.applet.Applet;
import java.applet.AudioClip;
import java.net.MalformedURLException;
import java.net.URL;

import Animalmanagement.Animal;

public class WildBoar extends Animal {
	String Image = "src/source/animalpicture/27.jpg";

	public WildBoar(String name, String habitat, String food, String height) {
		super(name, habitat, food, height);
	}

	@Override
	public void makeNoise() {
		try {
			AudioClip clip = Applet.newAudioClip(new URL(
					"file:src/source/sound/wildboar.wav"));
			clip.play();
		} catch (MalformedURLException murle) {
			murle.printStackTrace();
		}
	}

	@Override
	public String showImage() {
		return Image;
	}

	@Override
	public String[] showevents() {
		return null;
	}
}
